package com.wn.pay.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 借款人还款计划
 * </p>
 *
 * @author yellow docker
 * @since 2023-08-07
 */
@Getter
@Setter
  @TableName("borrower_pay_plan")
@ApiModel(value = "BorrowerPayPlan对象", description = "借款人还款计划")
public class BorrowerPayPlan implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        private Long id;

      @ApiModelProperty("借款人用户ID")
      private Long userId;

      @ApiModelProperty("借款人用户编码")
      private String userCode;

      @ApiModelProperty("借款标识")
      private Long borrowRecordId;

      @ApiModelProperty("借款编码")
      private String borrowRecordNo;

      @ApiModelProperty("期数")
      private Integer numberOfPeriods;

      @ApiModelProperty("还款利息")
      private BigDecimal interest;

      @ApiModelProperty("还款本金")
      private BigDecimal principal;

      @ApiModelProperty("本息")
      private BigDecimal amount;

      @ApiModelProperty("应还时间")
      private LocalDateTime shouldPayDate;

      @ApiModelProperty("应还状态0.待还,1.已还， 2.部分还款")
      private String payStatus;

      @ApiModelProperty("计划创建时间")
      private Date createDate;

      @ApiModelProperty("年化利率(平台佣金，利差)")
      private BigDecimal commission;


}
